@echo off

cd "..\Doc\DocuGenerator"
rd /s /q "DocuGenerator\bin"
rd /s /q "DocuGenerator\obj"

C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe "DocuGenerator.sln" /p:Configuration=Debug /t:Rebuild /verbosity:m
rem xcopy /q /y /E "Byond.Standalone\bin\release" "..\CompiledBinaries\Byond.Standalone\"

md "..\..\CompiledBinaries\Docu"
copy "..\docu.cmd" "..\..\CompiledBinaries\Docu\docu.cmd"

cd DocuGenerator\bin\Debug
"DocuGenerator.exe" "..\..\..\..\..\CompiledBinaries\Byond.Standalone\Byond.Core.dll" "..\..\..\..\..\CompiledBinaries\Docu\pages"
